package org.mii.safeguard_v1.security.service.impl;

import org.mii.safeguard_v1.base.service.EntityManager;
import org.mii.safeguard_v1.security.dao.ResourceDao;
import org.mii.safeguard_v1.security.entity.Resource;
import org.mii.safeguard_v1.security.service.IResourceManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springside.modules.orm.hibernate.HibernateDao;

@Service(value="resourceManager")
@Transactional
public class ResourceManager extends EntityManager<Resource, Integer> implements IResourceManager{

	@Autowired
	ResourceDao resourceDao;

	@Override
	protected HibernateDao<Resource, Integer> getEntityDao() {
		return resourceDao;
	}
}
